﻿using Microsoft.Extensions.DependencyInjection;
using System;
using XF.FM;
using XF.FM.Core;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class XfMvcExtention
    {
        public static IServiceCollection AddXfFramework(this IServiceCollection services, XfConfig xfConfig)
        {
            services.AddSingleton(xfConfig);
            services.AddSingleton<IXfService, XfService>();
            return services;
        }
    }
}
